<template>
	<view>
		<view class="box" :style="{height:state? '300rpx':'0'}"></view>
		<button size="mini" @click="clcikbtn">关闭</button>
	</view>
</template>

<script>
	export default {
		name:"mypop",
		data() {
			return {
				
			};
		},
		props:{
			state:{
				type:Boolean,
				default:false
			}
		},
		methods:{
			clcikbtn(){
				this.$emit("update:state",false)
			}
		}
	}
</script>

<style lang="scss">
	.box{
		width: 300rpx;
		height: 300rpx;
		background: pink;
	}
</style>